<?php 
$attributes = array('class' => 'adminForm ', 'id' => '');
//$hidden = array('url' => $url);
echo form_open(site_url('admin/polls/ordering'),$attributes);?>
<table class="kunTable">
	<thead>
    	<th width="20">{{ helper:lang line="global:identifier" }}</th>
        <th width="120">{{ helper:lang line="users:groups:name" }}</th>
        <th>{{ helper:lang line="users:groups:description" }}</th>
        
		<th width="50">{{ helper:lang line="global:action" }}</th>
    </thead>
    <tbody>
    	<?php foreach ($model as $item) { ?>
        	<tr>
            	<td>
                	{{ helper:count identifier }}
                </td>
                <td><?php echo $item->name?></td>
                <td><?php echo $item->description?></td>
				<td>
                	<?php if($item->name != 'admin' && $item->name != 'boss1' && $item->name != 'boss11' && $item->name != 'boss2' && $item->name != 'boss3' && $item->name != 'employee' ) :?>
					{{button:href: class="edit" title={helper:lang line="global:edit"} data-toggle="tooltip" 
                    		href={url:site uri="admin/users/groups/edit/<?php echo $item->id?>"} }}
                    {{button:href: class="del" title={ helper:lang line="global:delete"} data-toggle="tooltip" 
                    		href={url:site uri="admin/users/groups/delete/<?php echo $item->id?>"} }}
					<?php endif; ?>
				</td>
            </tr>
			<?php } ?>
    </tbody>
</table>
<?php echo form_close();?>